var Adv_skd=require("./Adv_skd")
var e = require;
var t = module;
var o = exports;
e("Interstitial").InterstitialType;
var n,
    i = o,
    a =
        ((n = function (e, t) {
            return (n =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (e, t) {
                        e.__proto__ = t;
                    }) ||
                function (e, t) {
                    for (var o in t) t.hasOwnProperty(o) && (e[o] = t[o]);
                })(e, t);
        }),
        function (e, t) {
            function o() {
                this.constructor = e;
            }
            n(e, t), (e.prototype = null === t ? Object.create(t) : ((o.prototype = t.prototype), new o()));
        }),
    r = function (e, t, o, n) {
        var i,
            a = arguments.length,
            r = a < 3 ? t : null === n ? (n = Object.getOwnPropertyDescriptor(t, o)) : n;
        if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n);
        else
            for (var s = e.length - 1; s >= 0; s--)
                (i = e[s]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
        return a > 3 && r && Object.defineProperty(t, o, r), r;
    };
Object.defineProperty(i, "__esModule", {value: !0});
var s = e("ADConfigs"),
    c = e("AssetsMap"),
    l = e("BundleNames"),
    d = e("GlobalParam"),
    u = e("PopupManager"),
    p = e("Util"),
    h = e("ConfigGameData"),
    f = e("GameData"),
    _ = e("GameDebug"),
    y = e("PlayerLevel"),
    m = e("SkinLevelData"),
    g = e("TaskData"),
    v = e("LoginProxy"),
    w = e("RankProxy"),
    b = e("StartModuleViewMediator"),
    C = e("TwistSnake"),
    k = (window.wx, cc._decorator),
    N = k.ccclass,
    B = k.property,
    P = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (
                (t.snakeTwist = null),
                (t.node_btn_TimeLimitModel = null),
                (t.node_btn_endlessModel = null),
                (t.node_btn_shootingModel = null),
                (t.node_btn_shop = null),
                (t.node_btn_signIn = null),
                (t.node_btn_egg = null),
                (t.node_btn_achieve = null),
                (t.node_btn_luck_drawView = null),
                (t.node_sprite_user_icon = null),
                (t.node_label_coin = null),
                (t.node_label_user_name = null),
                (t.node_btn_rankView = null),
                (t.btn_gift = null),
                (t.btn_role = null),
                (t.btn_taskTip = null),
                (t.btn_addCoin = null),
                (t.btn_moreGame = null),
                (t.skin_level = null),
                (t.btn_shareRecorder = null),
                (t.btn_addToDesktop = null),
                (t.BGMusic = null),
                (t.guideNode = null),
                (t.proBtn = null),
                (t.isGuide = !1),
                t
            );
        }
        return (
            a(t, e),
            (t.prototype.onResetView = function () {
                if (
                    (cc.SDK.showBoxPortalAd(200),
                    cc.SDK.showGetUICoinBox(
                        function (e) {
                            var t = f.default.instance.getPlayerCoin();
                            f.default.instance.setPlayerCoin(t + e);
                        },
                        function () {},
                        cc.SDK.gameID
                    ),
                    cc.SDK.showPrivacy(!1),
                    e.prototype.onResetView.call(this),
                    (this.isGuide = "true" === p.default.getItem("IndexGuide", "false")),
                    (this.guideNode.active = !this.isGuide),
                    _.default.instance.setGoogleTipColor(),
                    this.refresh_playerCoin(),
                    this.refreshUserInfo(),
                    this.refreshTaskTip(),
                    this.refreshPlayerLevel(),
                    ad.curr_platform == window.ad.Platform.HUAWEI_GAME &&
                        "false" == p.default.getItem("hw_PrivacyPolicy", "false"))
                ) {
                    var t = function () {
                        "false" == p.default.getItem("todatState" + p.default.getTodayStr(), "false") &&
                            game.PopupManager.instance.showPopView(c.default.PopupMap.SignInView, null, !0, !0);
                    };
                    this.scheduleOnce(function () {
                        game.PopupManager.instance.showPopView(
                            c.default.PopupMap.hw_PrivacyPolicy,
                            {call_back: t},
                            !1,
                            !1
                        );
                    }, 0.1);
                } else
                    this.scheduleOnce(function () {
                        "false" == p.default.getItem("todatState" + p.default.getTodayStr(), "false")
                            ? game.PopupManager.instance.showPopView(c.default.PopupMap.SignInView, null, !0, !0)
                            : game.PopupManager.instance.showPopView(c.default.PopupMap.EggView, null, !0, !0);
                    }, 0.1);
                this.renderEatChicken();

                Adv_skd.default.instance.hideAllAdv();

                Adv_skd.default.instance.showGridAdLeftOne();
                Adv_skd.default.instance.showGridAdRightOne();
                Adv_skd.default.instance.showInterstitialAd();

            }),
            (t.prototype.onAddToScene = function () {
                e.prototype.onAddToScene.call(this),
                    ad.curr_platform === window.ad.Platform.VIVO && ad.adInterface.showGamePortal();
            }),
            (t.prototype.onRemoveToScene = function () {
                e.prototype.onRemoveToScene.call(this),
                    ad.curr_platform === window.ad.Platform.VIVO && ad.adInterface.hideGamePortal(!0);
            }),
            (t.prototype.renderEatChicken = function () {
                var e = game.appFacade.retrieveProxy(v.default.NAME).isOpenEatChicken(),
                    t = e ? cc.Color.WHITE : new cc.Color(52, 52, 52);
                (this.node_btn_shootingModel.getChildByName("lock").active = !e),
                    (this.node_btn_shootingModel.getChildByName("tip").active = !e),
                    (this.node_btn_shootingModel.color = t);
            }),
            (t.prototype.onClick_btn_recorder = function () {
                (f.default.instance.tt_recorder_flags = !f.default.instance.tt_recorder_flags),
                    f.default.instance.tt_recorder_flags
                        ? ad.adInterface.ttStartRecorder()
                        : ad.adInterface.ttStopRecorder();
            }),
            (t.prototype.btnClick_shareRecorder = function () {
                var e = ad.adInterface.ttGetRecordVideoPath();
                if (e.length < 1) game.UIManager.instance.showToast("录屏失败，请稍后再试");
                else {
                    var t = {
                        share_title: s.TTParam.share_title,
                        videoPath: e,
                        success: function () {},
                        fail: function () {},
                        complete: function () {}
                    };
                    ad.adInterface.ttShareVideo(t);
                }
            }),
            (t.prototype.addEvent = function () {
                e.prototype.addEvent.call(this),
                    game.appFacade.view.registerObserver(
                        f.default.UPDATE_PLAYERCOIN,
                        new puremvc.Observer(this.refresh_playerCoin, this)
                    ),
                    this.node_btn_TimeLimitModel.on(
                        game.EngineEventType.NodeEvent.click,
                        this.onClickTimeLimitModel,
                        this
                    ),
                    this.node_btn_endlessModel.on(game.EngineEventType.NodeEvent.click, this.onClickEndlessModel, this),
                    this.node_btn_shootingModel &&
                        this.node_btn_shootingModel.on(
                            game.EngineEventType.NodeEvent.click,
                            this.onClickEatChicken,
                            this
                        ),
                    this.node_btn_shop.on(game.EngineEventType.NodeEvent.click, this.onClickShopView, this),
                    this.btn_role.on(game.EngineEventType.NodeEvent.click, this.onClickShopView, this),
                    this.node_btn_signIn.on(game.EngineEventType.NodeEvent.click, this.onClickSignInView, this),
                    this.node_btn_egg.on(game.EngineEventType.NodeEvent.click, this.onClickLuckyEggView, this),
                    this.node_btn_achieve.on(game.EngineEventType.NodeEvent.click, this.onClickAchieveView, this),
                    this.node_btn_luck_drawView.on(
                        game.EngineEventType.NodeEvent.click,
                        this.onClickLuckDrawView,
                        this
                    ),
                    this.btn_gift.on(game.EngineEventType.NodeEvent.click, this.onClickBtn_gift, this),
                    this.btn_addCoin.on(game.EngineEventType.NodeEvent.click, this.onClickBtn_addCoin, this),
                    this.btn_moreGame.on(game.EngineEventType.NodeEvent.click, this.onClickBtn_moreGame, this),
                    this.proBtn.on(game.EngineEventType.NodeEvent.click, this.showPro, this),
                    this.node_btn_rankView.on(cc.Node.EventType.TOUCH_END, this.onClickRankView, this),
                    this.skin_level.on(cc.Node.EventType.TOUCH_END, this.onClickSkin_level, this),
                    this.btn_taskTip.on(cc.Node.EventType.TOUCH_END, this.onClick_taskTip, this),
                    this.btn_taskTip.getChildByName("task_name").on("size-changed", this.size_changed_task_name, this),
                    this.btn_addToDesktop.on(game.EngineEventType.NodeEvent.click, this.onClick_btn_addToDesktop, this),
                    this.btn_shareRecorder.on(game.EngineEventType.NodeEvent.click, this.btnClick_shareRecorder, this);
            }),
            (t.prototype.removeEvent = function () {
                e.prototype.removeEvent.call(this),
                    game.appFacade.view.removeObserver(f.default.UPDATE_PLAYERCOIN, this),
                    this.node_btn_TimeLimitModel.off(
                        game.EngineEventType.NodeEvent.click,
                        this.onClickTimeLimitModel,
                        this
                    ),
                    this.node_btn_endlessModel.off(
                        game.EngineEventType.NodeEvent.click,
                        this.onClickEndlessModel,
                        this
                    ),
                    this.node_btn_shootingModel &&
                        this.node_btn_shootingModel.on(
                            game.EngineEventType.NodeEvent.click,
                            this.onClickEatChicken,
                            this
                        ),
                    this.node_btn_shop.off(game.EngineEventType.NodeEvent.click, this.onClickShopView, this),
                    this.btn_role.off(game.EngineEventType.NodeEvent.click, this.onClickShopView, this),
                    this.node_btn_signIn.off(game.EngineEventType.NodeEvent.click, this.onClickSignInView, this),
                    this.btn_addCoin.off(game.EngineEventType.NodeEvent.click, this.onClickBtn_addCoin, this),
                    this.node_btn_egg.off(game.EngineEventType.NodeEvent.click, this.onClickLuckyEggView, this),
                    this.node_btn_achieve.off(game.EngineEventType.NodeEvent.click, this.onClickAchieveView, this),
                    this.node_btn_luck_drawView.off(
                        game.EngineEventType.NodeEvent.click,
                        this.onClickLuckDrawView,
                        this
                    ),
                    this.btn_gift.off(game.EngineEventType.NodeEvent.click, this.onClickBtn_gift, this),
                    this.btn_moreGame.off(game.EngineEventType.NodeEvent.click, this.onClickBtn_moreGame, this),
                    this.skin_level.off(cc.Node.EventType.TOUCH_END, this.onClickSkin_level, this),
                    this.node_btn_rankView.off(cc.Node.EventType.TOUCH_END, this.onClickRankView, this),
                    this.btn_taskTip.off(cc.Node.EventType.TOUCH_END, this.onClick_taskTip, this),
                    this.btn_taskTip.getChildByName("task_name").off("size-changed", this.size_changed_task_name, this),
                    this.btn_addToDesktop.off(
                        game.EngineEventType.NodeEvent.click,
                        this.onClick_btn_addToDesktop,
                        this
                    ),
                    this.proBtn.off(game.EngineEventType.NodeEvent.click, this.showPro, this),
                    this.btn_shareRecorder.off(game.EngineEventType.NodeEvent.click, this.btnClick_shareRecorder, this);
            }),
            (t.prototype.onClick_btn_addToDesktop = function () {}),
            (t.prototype.showPro = function () {
                game.PopupManager.instance.showPopView(c.default.PopupMap.ProView, null, !0, !1);
            }),
            (t.prototype.refreshUserInfo = function () {
                var e = this,
                    t = game.appFacade.retrieveProxy(v.default.NAME).loginVO.userInfo;
                t &&
                    (t.nickName.length > 7 && (t.nickName = t.nickName.substring(0, 7)),
                    (f.default.instance.UserName = t.nickName),
                    f.default.instance.ResetData(),
                    console.log("t.avatarUrl:", t.avatarUrl),
                    (this.node_label_user_name.getComponent(cc.Label).string = t.nickName),
                    cc.assetManager.loadBundle("popup", function (t, o) {
                        if (!t) {
                            var n = f.default.instance.getUserSkin(),
                                i = m.SkinLevelData.instance.skinList[n];
                            o.load("textures/EggView/skin_icon/" + i.name, cc.SpriteFrame, function (t, o) {
                                if (t) return console.log("加载首页头像出错：", i.name), void cc.error(t.message || t);
                                e.node_sprite_user_icon.getComponent(cc.Sprite).spriteFrame = o;
                            });
                        }
                    }));
            }),
            (t.prototype.refreshPlayerLevel = function () {
                for (
                    var e = this.node.getChildByName("user_data").getChildByName("gameLevel"),
                        t = y.default.instance.getPlayerLevel(),
                        o = 1;
                    o < 4;
                    o++
                )
                    e.getChildByName("star" + o).getChildByName("star").active = o <= t.star;
                var n = game.BundleManager.instance
                    .getBundle(l.default.Start)
                    .get(c.default.StartBundle.textures.assetsList[t.type], cc.SpriteFrame);
                e.getChildByName("gameLevel_image").getComponent(cc.Sprite).spriteFrame = n;
            }),
            (t.prototype.refresh_playerCoin = function () {
                var e = f.default.instance.getPlayerCoin();
                this.node_label_coin.getComponent(cc.Label).string = e.toString();
            }),
            (t.prototype.registerMediator = function () {
                game.appFacade.registerMediator(new b.default(this));
            }),
            (t.prototype.removeMediator = function () {
                game.appFacade.removeMediator(b.default.NAME);
            }),
            (t.prototype.refreshTaskTip = function () {
                for (var e = !0, t = g.default.instance.task_list_index, o = 0; o < t.length; o++) {
                    var n = t[o],
                        i = g.default.instance.getTaskProgressByIndex(n);
                    if (i < 1) {
                        (e = !1),
                            (this.btn_taskTip.getChildByName("task_name").getComponent(cc.Label).string =
                                g.default.instance.task_list[n]),
                            (this.btn_taskTip.getChildByName("progress").getComponent(cc.ProgressBar).progress = i);
                        var a = g.default.instance.getTaskDataByIndex(n);
                        this.btn_taskTip.getChildByName("label_progress").getComponent(cc.Label).string =
                            a[0] + "/" + a[1];
                        break;
                    }
                }
                e && (this.btn_taskTip.active = !1);
            }),
            (t.prototype.size_changed_task_name = function () {
                this.btn_taskTip.getChildByName("task_name").width > 133 &&
                    (this.btn_taskTip.width = this.btn_taskTip.getChildByName("task_name").width + 160 - 133);
            }),
            (t.prototype.start = function () {
                console.log("首页")
                this.isCache = !1;
                var e = this.BGMusic;
                game.AudioManager.playBGM(e, !0),
                    (this.btn_gift.active = !1),
                    this.rankViewInit(),
                    game.appFacade.retrieveProxy(w.default.NAME).rankVO.rankList.length > 0 && this.rankViewRefresh(),
                    u.default.instance.init(),
                    m.SkinLevelData.instance.ResetData(d.default.SkinLevelData),
                    this.renderSnakeInfo();

                  
            }),
            (t.prototype.renderSnakeInfo = function (e) {
                void 0 === e && (e = !0), e ? this.snakeTwist.initAndStart() : this.snakeTwist.startAction();
                var t = f.default.instance.getUserSkin(),
                    o = m.SkinLevelData.instance.skinList[t],
                    n = o.name;
                console.log("皮肤的名字是什么：", n), this.snakeTwist.setSkin(n);
                var i = Number(p.default.getItem("dressItemUse" + t, "-1"));
                this.snakeTwist.setDecorate(i);
                var a = this.skin_level.getChildByName("level_1"),
                    r = this.skin_level.getChildByName("level_2"),
                    s = this.skin_level.getChildByName("level_3");
                (a.active = "普通" === o.level_type[0]),
                    (r.active = "传说" === o.level_type[0]),
                    (s.active = "史诗" === o.level_type[0]),
                    (this.skin_level.getChildByName("name_snake").getComponent(cc.Label).string =
                        "(" + o.chinese + ")"),
                    this.rankViewRefresh(),
                    this.refreshUserInfo();
            }),
            (t.prototype.rankProxyInit = function () {}),
            (t.prototype.rankViewInit = function () {
                game.appFacade.retrieveProxy(w.default.NAME).requestRankList();
            }),
            (t.prototype.rankViewRefresh = function () {
                var e = game.appFacade.retrieveProxy(w.default.NAME).rankVO.rankList;
                this.node
                    .getChildByName("RankingList")
                    .getChildByName("items")
                    .children.forEach(function (t, o) {
                        if (!(o >= e.length)) {
                            console.log("替换首页头像");
                            var n = t.getChildByName("user_icon");
                            p.default.parseObject(e[o].extendParams),
                                cc.assetManager.loadBundle("popup", function (e, t) {
                                    if (!e) {
                                        var o = f.default.instance.getUserSkin(),
                                            i = m.SkinLevelData.instance.skinList[o];
                                        t.load("textures/EggView/skin_icon/" + i.name, cc.SpriteFrame, function (e, t) {
                                            if (e)
                                                return (
                                                    console.log("加载首页头像出错：", i.name),
                                                    void cc.error(e.message || e)
                                                );
                                            console.log("替换首页头像成功"),
                                                (n.getComponent(cc.Sprite).spriteFrame = t);
                                        });
                                    }
                                });
                        }
                    });
            }),
            (t.prototype.onClick_taskTip = function () {
                this.onClickAchieveView();
            }),
            (t.prototype.onClickSkin_level = function () {
                ad.curr_platform == window.ad.Platform.WECHAT && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.TOU_TIAO && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.MEI_ZU && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.HUAWEI_GAME && ad.adInterface.showNativeInterstitial(),
                    game.AudioManager.playBtnEffect(),
                    game.PopupManager.instance.showPopView(c.default.PopupMap.ShopSkinView, null, !0, !0);
            }),
            (t.prototype.onClickBtn_addCoin = function () {
                ad.curr_platform == window.ad.Platform.WECHAT && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.TOU_TIAO && ad.adInterface.showInterstitial(),
                    game.AudioManager.playBtnEffect(),
                    (ad.curr_platform == window.ad.Platform.WECHAT && "" == s.WeChatParam.rewarded_video_id) ||
                        (f.default.instance.getCoinTipIndex() > 0
                            ? game.PopupManager.instance.showPopView(c.default.PopupMap.GetCoinTipView, null, !0, !0)
                            : game.UIManager.instance.showToast("今日次数已达上限"));
            }),
            (t.prototype.onClickBtn_gift = function () {}),
            (t.prototype.onClickBtn_moreGame = function () {
                game.AudioManager.playBtnEffect();
            }),
            (t.prototype.onClickRankView = function () {
                game.AudioManager.playBtnEffect(),
                    game.PopupManager.instance.showPopView(c.default.PopupMap.RankView, null, !0, !0);
            }),
            (t.prototype.onClickShopView = function () {
                ad.curr_platform == window.ad.Platform.WECHAT && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.TOU_TIAO && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.MEI_ZU && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.HUAWEI_GAME && ad.adInterface.showNativeInterstitial(),
                    game.AudioManager.playBtnEffect(),
                    game.PopupManager.instance.showPopView(c.default.PopupMap.ShopSkinView, null, !0, !0);
            }),
            (t.prototype.onClickLuckDrawView = function () {
                ad.curr_platform == window.ad.Platform.WECHAT && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.TOU_TIAO && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.HUAWEI_GAME && ad.adInterface.showNativeInterstitial(),
                    ad.curr_platform == window.ad.Platform.MEI_ZU && ad.adInterface.showInterstitial(),
                    game.AudioManager.playBtnEffect(),
                    game.PopupManager.instance.showPopView(c.default.PopupMap.LuckDrawView, null, !0, !0);
            }),
            (t.prototype.onClickAchieveView = function () {
                ad.curr_platform == window.ad.Platform.WECHAT && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.TOU_TIAO && ad.adInterface.showInterstitial(),
                    game.AudioManager.playBtnEffect(),
                    game.PopupManager.instance.showPopView(c.default.PopupMap.AchieveView, null, !0, !0);
            }),
            (t.prototype.onClickLuckyEggView = function () {
                ad.curr_platform == window.ad.Platform.WECHAT && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.TOU_TIAO && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.HUAWEI_GAME && ad.adInterface.showNativeInterstitial(),
                    ad.curr_platform == window.ad.Platform.MEI_ZU && ad.adInterface.showInterstitial(),
                    game.AudioManager.playBtnEffect(),
                    game.PopupManager.instance.showPopView(c.default.PopupMap.EggView, null, !1, !0);
            }),
            (t.prototype.onClickSignInView = function () {
                ad.curr_platform == window.ad.Platform.WECHAT && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.TOU_TIAO && ad.adInterface.showInterstitial(),
                    ad.curr_platform == window.ad.Platform.HUAWEI_GAME && ad.adInterface.showNativeInterstitial(),
                    ad.curr_platform == window.ad.Platform.MEI_ZU && ad.adInterface.showInterstitial(),
                    game.AudioManager.playBtnEffect(),
                    game.PopupManager.instance.showPopView(c.default.PopupMap.SignInView, null, !0, !0);
            }),
            (t.prototype.onClickTimeLimitModel = function () {
                Adv_skd.default.instance.hideAllAdv();
                game.AudioManager.playBtnEffect();
                var e = ad.curr_platform === window.ad.Platform.TOU_TIAO;
                game.log("T=> 点击排位模式"),
                    e && window.tt.reportAnalytics("Moshi_PaiWei_Click", {}),
                    game.PopupManager.instance.showPopView(c.default.PopupMap.RankChooseMapView, null, !0, !0);
            }),
            (t.prototype.onClickEndlessModel = function () {
                Adv_skd.default.instance.hideAllAdv();
                game.AudioManager.playBtnEffect();
                var e = ad.curr_platform === window.ad.Platform.TOU_TIAO;
                game.log("T=> 点击无尽模式"),
                    e && window.tt.reportAnalytics("Moshi_WuJin_Click", {}),
                    this.isGuide ||
                        ((this.isGuide = !0), p.default.setItem("IndexGuide", "true"), (this.guideNode.active = !1)),
                    (f.default.instance.GameModel = f.GameModel.endless),
                    this.onClickJoinGame();
            }),
            (t.prototype.onClickEatChicken = function () {
                Adv_skd.default.instance.hideAllAdv();
                var e = game.appFacade.retrieveProxy(v.default.NAME),
                    t = ad.curr_platform === window.ad.Platform.TOU_TIAO;
                game.log("T=> 点击乱斗模式"),
                    t && window.tt.reportAnalytics("Moshi_LuanDou_Click", {}),
                    e.isOpenEatChicken()
                        ? ((f.default.instance.GameModel = f.GameModel.eatChicken), this.onClickJoinGame())
                        : game.UIManager.instance.showToast("无尽模式达10000分后开启");
            }),
            (t.prototype.onClickJoinGame = function () {
                var e = !1,
                    t = {isReadyPatch: e};
                (e = ad.adInterface.isNativePatchReady()),
                    (t.isReadyPatch = e),
                    h.default.instance.ResetData(),
                    f.default.instance.GameModel == f.GameModel.endless ||
                    f.default.instance.GameModel == f.GameModel.eatChicken
                        ? game.UIManager.instance.showLoadResView([l.default.Game], [l.default.Game], function () {
                              game.UIManager.instance.replaceModuleView(
                                  l.default.Game,
                                  c.default.GameBundle.prefabs.assetsList.GameModuleView,
                                  {}
                              );
                          })
                        : game.PopupManager.instance.showPopView(c.default.PopupMap.MatchPlayersView, null, !1, !0);
            }),
            r([B(C.default)], t.prototype, "snakeTwist", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_TimeLimitModel", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_endlessModel", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_shootingModel", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_shop", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_signIn", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_egg", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_achieve", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_luck_drawView", void 0),
            r([B(cc.Node)], t.prototype, "node_sprite_user_icon", void 0),
            r([B(cc.Node)], t.prototype, "node_label_coin", void 0),
            r([B(cc.Node)], t.prototype, "node_label_user_name", void 0),
            r([B(cc.Node)], t.prototype, "node_btn_rankView", void 0),
            r([B(cc.Node)], t.prototype, "btn_gift", void 0),
            r([B(cc.Node)], t.prototype, "btn_role", void 0),
            r([B(cc.Node)], t.prototype, "btn_taskTip", void 0),
            r([B(cc.Node)], t.prototype, "btn_addCoin", void 0),
            r([B(cc.Node)], t.prototype, "btn_moreGame", void 0),
            r([B(cc.Node)], t.prototype, "skin_level", void 0),
            r([B(cc.Node)], t.prototype, "btn_shareRecorder", void 0),
            r([B(cc.Node)], t.prototype, "btn_addToDesktop", void 0),
            r([B(cc.AudioClip)], t.prototype, "BGMusic", void 0),
            r([B(cc.Node)], t.prototype, "guideNode", void 0),
            r([B(cc.Node)], t.prototype, "proBtn", void 0),
            r([N], t)
        );
    })(game.BaseModuleView);
i.default = P;
